<template>
  <view class="banner">
    <view class="banner-left">
      <text class="banner-icon">✨</text>
      <view class="banner-text">
        <text class="banner-title">{{ title }}</text>
        <text class="banner-desc">{{ description }}</text>
      </view>
    </view>
    <view class="banner-btn" @click="onButtonClick">
      {{ buttonText }}
    </view>
  </view>
</template>

<script>
export default {
  name: 'FeatureBanner',
  props: {
    title: {
      type: String,
      default: '全新体验'
    },
    description: {
      type: String,
      default: '专属情绪倾诉模式已上线'
    },
    buttonText: {
      type: String,
      default: '立即体验'
    }
  },
  methods: {
    onButtonClick() {
      this.$emit('click');
    }
  }
};
</script>

<style>
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #7e22ce, #9333ea);
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 30rpx;
  width: 100%;
  box-sizing: border-box;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 20rpx;
}

.banner-icon {
  font-size: 40rpx;
  color: #fef08a; /* 黄色 */
}

.banner-text {
  display: flex;
  flex-direction: column;
}

.banner-title {
  font-weight: bold;
  font-size: 32rpx;
}

.banner-desc {
  font-size: 24rpx;
  opacity: 0.9;
}

.banner-btn {
  background-color: rgba(168, 85, 247, 0.8);
  padding: 10rpx 30rpx;
  border-radius: 50rpx;
  font-size: 26rpx;
  display: flex;
  align-items: center;
}
</style>